home *** CD-ROM | disk | FTP | other *** search
- Path: hk.linkage.net!priscilla
- From: priscilla@wyvern (Priscilla Ngie)
- Newsgroups: comp.lang.c
- Subject: Borland sqrt() bug?
- Date: 8 Mar 1996 09:14:13 GMT
- Organization: LinkAGE Online Ltd.
- Message-ID: <4hotp5$a1h@news.hk.linkage.net>
- NNTP-Posting-Host: wyvern.hk.linkage.net
- X-Newsreader: TIN [version 1.2 PL2]
-
- I tired the following code
-
- float num;
- if (num > 0) sqrt(num);
-
- and Borland C++ 4.02 returns me with an error
-
- sqrt: DOMAIN error
-
- This error dialog box only pops up when num is a +ve number approaching
- zero, eg 0.000000005.
-
- Is this a bug of some kind? If not, how can I trun around this?
-
- Priscilla Ngie
- Future Solutions
- Hong Kong
-